﻿using Basic.FlowRemoteModel;
using SqlSugar;

namespace Basic.FlowModel.DB
{
    [SugarTable("FlowAuditNodeState")]
    public class DBFlowAuditNodeState
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id
        {
            get;
            set;
        }
        public long FlowId
        {
            get;
            set;
        }
        public long LogId
        {
            get;
            set;
        }
        public long NodeId
        {
            get;
            set;
        }
        public long RootNodeId { get; set; }
        /// <summary>
        /// 流程项最终审核状态
        /// </summary>
        public FlowNodeAuditStatus Status { get; set; }
        /// <summary>
        /// 最后操作状态的项ID
        /// </summary>
        public long? OptItemId { get; set; }

        public FlowNodeAuditStatus? PrevStatus { get; set; }
    }
}
